// 导入monggose模块

const mongoose = require('mongoose');

// 链接数据库

mongoose.connect('mongodb://localhost:27017/whq', (err) => {
    if (!err) {
        return console.log('登录成功');
    }
    console.log('登录失败');
})

module.exports = mongoose;